<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/fn.tld" prefix="fn" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/core.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/os.tld" prefix="os" %>
<%@ taglib uri="/WEB-INF/tld/customTaglib.tld" prefix="ct" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>我的订单-机票订单</title>
<base href="<%=basePath %>"/>
<link href="orderManager/member/css/login.css" rel="stylesheet" type="text/css" />
<LINK href="orderManager/member/css/header-min.css" rel=stylesheet>
<script type="text/javascript" src="orderManager/member/css/sdmenu.js"></script>
<script type="text/javascript" src="/script/My97DatePicker/WdatePicker.js" defer="defer"></script>
</head>

<body>

<jsp:include page="/pub_head.jsp"></jsp:include>
	<!-- 中间 -->
	<div id="page-container">
 
<form action="/flight/itinApply.do?op=search" method="post" style="border: 0px;">
	  <div id="content" style="border: solid 1px #0183BD;"><div class="p16" style="display: none"><DIV class="tb-1">
  <table width="760" height="37" style="display: none">
	<tr>
		<td width="248" height="31" class="tdl">
		  <label>订单开始时间：</label>
		  <input id="startDate" size="15" name="startDate" class="Wdate" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d'})" value="" readonly="readonly" />		</td>
		<td width="246" class="tdl"><label>订单结束时间：</label>
		  <input id="endDate" size="15" name="endDate" class="Wdate" onfocus="WdatePicker({isShowWeek:true,maxDate:'%y-%M-%d',minDate:'#F{$dp.$D(\'startDate\')}'})" value="" readonly="readonly"/></td>
		<td width="183" class="tdl"><label>状态：
            <select name="status" id="status">
					<option value="">-所有订单-</option>
					<option value="0">等待支付</option>
					<option value="-3">等待订位</option>
					<option value="1">支付完成</option>
					<option value="2">出票完成</option>
					<option value="4">退款成功</option>

				</select>
				 <script type="text/javascript">
<!--		
			document.getElementById('status').value='';
//-->
</script>
		</label></td>
	    <td width="63" class="tdl"><button class="button2" id="J_SearchOrders" type="submit">
		搜索</button></td>
	</tr>
	<!-- add -->
</table>
      </DIV></div>
      
	  <div id="listbb">
	  <div align="center">
        <table class="tablet" cellspacing="1" cellpadding="3" border="0">
          <tr>
            <td class="tdt" height="128"><div class="bbmc" style="width: 150px">行程单编号</div>
              <div class="ddbh">邮寄地址</div>
              <div class="ddbh">邮政编码</div>
              <div class="ddbh">联系人</div>
			  <div class="ttbh">联系电话</div>
              <div class="ddbh">申请日期</div>
              <div class="ddbh">状&nbsp;态</div>
              <div class="ttbh">操作</div></td>
          </tr>
          <logic:iterate id="itin" name="itins" indexId="index">
          	<tr>
            <td width="731" height="66">
			<table cellpadding="0" cellspacing="0" width="740">
                <tr>
                  <td width="133" height="58"><span class="black-text"><a href="/flight/itinApply.do?op=getItin&id=${itin.id }" class="ck">${itin.itineraryNo}</a></span></td>
                  <td class="tdl" width="103">${itin.address}</td>
                  <td class="tdi" width="79">${itin.zip}</td>
                  <td class="tdi" width="79">${itin.name}</td>
                  <td class="tdi" width="94"><span class="tkcg">${itin.phone}</span></td>
                  <td class="tdi" width="72"><span class="jg"><span class="STYLE2">
                  <bean:write name="itin" property="creatTime" format="yyyy-MM-dd HH:mm"/>
                  </span></td>
                  <td class="tdi" width="88">
                  	<c:if test="${itin.status==0}"><font color="red"><b>等待支付</b></font></c:if>
                  	<c:if test="${itin.status==1}"><font color="green"><b>支付完成</b></font></c:if>
                  </td>
                  <td class="tdi" width="69">
                  	<c:if test="${itin.status==0}">
                  	<a href="/flight/itinApply.do?op=getItin&id=${itin.id }">查看信息</a>
                  	</c:if>
                  </td>
                </tr>
            </table></td>
          </tr>
          </logic:iterate>
	    </table>
      </div>
	</div>
	<div id="xm">
  	   <div class="sabrosus">
  	   	<ct:Pagination pageSize="${page.pageSize}" pageNo="${page.pageIndex}" totalRows="${page.recordCount}"/>
  	   </div> 
	  </div>
	</div>
</form>
	
<iframe id="frmLeft" name="frmLeft" src="/orderManager/left_buy.jsp" width="154" height="650" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no" allowtransparency="yes"></iframe>
	
</div>
<div id="page-container">
<%@include file="/footer.jsp" %>
</div>




</body>
</html>
